<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path=request.getContextPath()+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=path %>" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="view/bootstrapvalidator/css/bootstrapValidator.css" />
<script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
<script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
<script charset="utf-8" src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>
</head>
<body>
<div class="container">
        <div class="col-md-6 col-md-offset-3">
            <form role="form" class="form-horizontal" action="duanXiaoXi/insertDuanXiaoXi" method="post" enctype="multipart/form-data">
                <table class="table table-bordered">
                    <caption>短消息</caption>
                    <tbody>
                        <tr>
                            <td><label for="biaoti">标题: </label></td>
                            <td colspan="2"><input type="text" class="form-control" name="biaoti" id="biaoti" ></td>
                        </tr>
                        <tr>
                            <td><label for="neirong">发送内容: </label></td>
                            <td colspan="2"><textarea rows="10" cols="55" name="neirong" id="neirong"></textarea></td>
                        </tr>
                        <tr>
                            <td><label for="files">附件: </label></td>
                            <td colspan="2"><input type="file" name="muFile" id="muFile"></input>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label for="jieshouren">选择联系人: </label>
                            </td>
                            <td>
                                <select class="form-control"id="jieshouren" style="width: 130px" name="jieshouren" multiple>
                                    <c:forEach items="${emps}" var="e">
                                        <option value="${e.oid}">${e.empName}</option>
                                    </c:forEach>
                                </select>
                            </td>
                            <td align="right"><br><br><br>
                                <button type="submit">发送</button>
                                &nbsp;&nbsp;
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>
            <div id="alertmsg" class="alert alert-dander" style="background-color:#66FFFF;color:red" hidden="true">
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
$(document).ready(function() {
	var msg="${requestScope.message}";
	if(msg!=null && msg!=""){
		$("#alertmsg").text(msg);
		$("#alertmsg").show();
		$("#alertmsg").delay(3000).hide(0);
	}
});
</script>
</html>